﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WeiTap.Web.Params
{
    /// <summary>
    /// 
    /// </summary>
    public class HttpStringParams : HttpParamsBase<string>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="params"></param>
        /// <param name="position"></param>
        public HttpStringParams(IHttpParameterContainer @params, HttpParamLocation position) : base(@params, position)
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public override string this[string name]
        {
            get
            {
                var r = Params.Get(Location, name);
                return r.ToString();

            }
            set { base[name] = value; }
        }
    }
}
